package code07_面向对象.抽象类;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月21日19:13
 */
public class Man extends Person {
    private double salary;

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public void show() {
        System.out.println("这是Man子类的方法");
    }//重写抽象方法
}